package com.zts.modules.sys.entity.model;

import com.zts.base.entity.EntityModel;
import com.zts.modules.sys.entity.Para;
import com.zts.util.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

/**
 * Created by jisd on 2017/6/19.
 */
public class ParaModel extends EntityModel<Para> {

    @ApiModelProperty(value = "参数标识")
    private Long id;
    @ApiModelProperty(value = "参数名称")
    private String paraName;
    @ApiModelProperty(value = "参数代码")
    private String paraCode;
    @ApiModelProperty(value = "参数值")
    private String paraValue;
    @ApiModelProperty(value = "参数状态")
    private String status;
    @ApiModelProperty(value = " 标注")
    private String remark;


    public String getParaName() {
        return paraName;
    }

    public String getParaCode() {
        return paraCode;
    }

    public String getParaValue() {
        return paraValue;
    }

    public String getStatus() {
        return status;
    }


    public void setParaName(String paraName) {
        this.paraName = paraName;
    }

    public void setParaCode(String paraCode) {
        this.paraCode = paraCode;
    }

    public void setParaValue(String paraValue) {
        this.paraValue = paraValue;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public Para transEntity() {
        Para para = new Para();
        String[] emptyProperties = BeanUtil.getNullPropertyNames(this);
        BeanUtils.copyProperties(this, para, emptyProperties);
        return para;
    }


    @Override
    public Para transEntity(Para entity) {
        String[] emptyProperties = BeanUtil.getNullPropertyNames(this);
        BeanUtils.copyProperties(this, entity, emptyProperties);
        return entity;
    }


}
